﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace YodaSL
{
	public partial class PlayerPanel : UserControl
	{
		public PlayerPanel()
		{
			InitializeComponent();

		}


		private bool leftSide;

		public bool LeftSide
		{
			get { return leftSide; }
			set { leftSide = value; }
		}

		private void LayoutRoot_Loaded(object sender, RoutedEventArgs e)
		{
			if (!LeftSide)
			{
				Grid.SetColumn(this.playerImage, 1);
				Grid.SetColumn(this.playerText, 0);
			}
			else
			{
				Grid.SetColumn(this.playerImage, 0);
				Grid.SetColumn(this.playerText, 1);
			}

		}


		

	}
}
